Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow resolving moduleDeps with older Scala 3 versions #2877

Merged
merged 2 commits into from
Jan 8, 2024

Conversation

lolgab
Copy link
Member

@lolgab lolgab commented Nov 15, 2023

Motivation

Sometimes you want different modules in a build to have different Scala 3 versions, one the older and one the newer.
The current resolve implementation in CrossModuleBase is tailored to Scala 2 since it assumes that the binary version is x.y while in Scala 3 it's just the first part.

This change adapts the algorithm to consider 1 or 2 parts depending if it is Scala 3 or not.

Pull Request: #2877

@lolgab lolgab force-pushed the resolve-scala-3-version branch 3 times, most recently from 38de173 to 64486bb Compare November 15, 2023 14:22
Copy link
Member

@lefou lefou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change looks reasonable to me. I haven't looked at the CI build failures though.

@lolgab lolgab force-pushed the resolve-scala-3-version branch from 64486bb to 49e2ee4 Compare January 8, 2024 13:40
@lolgab lolgab marked this pull request as ready for review January 8, 2024 13:48
@lolgab lolgab requested a review from lefou January 8, 2024 13:56
@lolgab lolgab merged commit 554c84f into com-lihaoyi:main Jan 8, 2024
38 checks passed
@lolgab lolgab deleted the resolve-scala-3-version branch January 8, 2024 16:35
@lefou lefou added this to the 0.11.7 milestone Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants